"""
主题收藏模块
"""
import requests

def collect_topic(accesstoken,topic_id):
    """
    添加主题收藏
    :param accesstoken:
    :param topic_id:
    :return:
    """
    url = "http://47.100.175.62:3000/api/v1/topic_collect/collect"
    postdata = {
        "accesstoken":accesstoken,
        "topic_id":topic_id
    }
    return  requests.post(url,data=postdata)